<?php 
include_once("conf/conf.php");
require_once(LIB_UI_DIR . "/FunctionCommon.class.php");
require_once(LIB_CORE_DIR . "/Session.class.php");
include_once(LIB_CORE_DIR . "/Validator.class.php");
require_once(LIB_DAO_DIR . "/MNews.class.php");
$ojbNewsKM = new MNews();
$listKhuyenMai = $ojbNewsKM->getListFromNews('1', false, array(0,6));
?>
<?php if (count ($listKhuyenMai) > 0) :?>
	<marquee style="height:305px;margin-left:4px;float:left;" onmouseover="this.stop();" onmouseout="this.start();" behavior="scroll" direction="up" scrollamount="3" align=center>
    	<table cellspacing="0" cellpadding="0" width="98%" border="0">
            <?php foreach ($listKhuyenMai as $kms) :?>
            <tr>
                <td>
                	<a style="text-decoration:none;" target="_blank" href="<?php echo WEB_LINK . "/";?>chi-tiet-khuyen-mai-<?php echo $kms['id'];?>#content"><?php echo $kms['tieude'];?></a><br>
                	<?php echo $kms['tomtat'];?>
                </td>
            </tr>
            <tr><td>&nbsp;</td></tr>
            <?php endforeach;?>
        </table>
    </marquee>
<?php endif;?>